package cn.shadow.service;

import cn.shadow.concurrent.DisruptorExecutor;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;


public interface IThreadService {
    /**
     * db线程池
     */
    ExecutorService getDbExecutor();

    /**
     * fastDB线程池
     */
    ExecutorService getFastDbExecutor();

    /**
     * 周期性任务处理线程池
     */
    ScheduledExecutorService getScheduledExecutorService();

    /**
     * 用户线程
     */
    DisruptorExecutor getExecutor(int id);
}
